package images;

import java.awt.*;

import javax.swing.*;
public class PlayerCharacter extends Actor {
	private int direction;
	public PlayerCharacter(GameControl gc) {
		super(400, 300, gc);
		direction = 90;
		sprite = new Image[1];
		//Will add more space to array later to accomodate larger animations.
		//sprite[0] = (new ImageIcon("derp.png")).getImage();
		sprite[0] = Toolkit.getDefaultToolkit().getImage(getClass().getResource("/images/derp.png"));
	}
	public void setDirection(int d) {
		direction = d;
	}
	public void move(int xmov, int ymov) {
		setX(xPos+xmov);
		setY(yPos+ymov);
	}
	public int getDirection() {
		return direction;
	}
	public void draw(Graphics g) {
		g.drawImage(sprite[0], xPos, yPos, null);
	}
}
